import App from './App'
import api from '@/common/api.js'
import domain from '@/common/operate.js'
import Utils from '@/utils/utils.js'
import filter from '@/common/filter.js'
import store from './store'
import mixin from './common/mixin/mixin'
import i18n from '@/common/lang/lang.js'
// import ws from '@/common/socket.js'
import bigimg from "@/components/common/bigImg.vue"
// main.js
import uView from 'uview-ui'
Vue.use(uView)
// Vue.prototype.$ws = ws
Vue.prototype.$domain = domain
Vue.prototype.$api = api
Vue.prototype.$utils = Utils
Vue.prototype._i18n = i18n
Vue.component('big-img', bigimg)
Vue.mixin(mixin)

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store,
	i18n
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif